package com.dhcc.cdc.busi.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.dhcc.cdc.sys.entity.CdcDataEntity;
import com.dhcc.core.framework.base.entity.DataEntity;

/**
 * 业务字典类型
 * 
 * @ClassName: CdcDictypeEntity
 * @Description: TODO
 * @author jumper
 * @date 2021-03-15 10:20:09
 */
@TableName("t_cdc_ct_dictype") 
public class CdcDictypeEntity extends DataEntity<CdcDictypeEntity> {
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	
	//代码
	private String code;	
	//描述
	private String description;	
	//业务数据类型
	private Long dataId;	
	//是否有效
	private Integer isActive;	
    @TableField(exist = false)
    private CdcDataEntity data;
	/**
	 * 设置：代码
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * 获取：代码
	 */
	public String getCode() {
		return code;
	}
	/**
	 * 设置：描述
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * 获取：描述
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * 设置：业务数据类型
	 */
	public void setDataId(Long dataId) {
		this.dataId = dataId;
	}
	/**
	 * 获取：业务数据类型
	 */
	public Long getDataId() {
		return dataId;
	}
	/**
	 * 设置：是否有效
	 */
	public void setIsActive(Integer isActive) {
		this.isActive = isActive;
	}
	/**
	 * 获取：是否有效
	 */
	public Integer getIsActive() {
		return isActive;
	}
    public CdcDataEntity getData() {
        return data;
    }
    public void setData(CdcDataEntity data) {
        this.data = data;
    }
}
